<?php
namespace Home\Controller;
use Think\Controller;

class HomeBasicController extends Controller {

	public function _initialize(){
        $this->assign('m_nickname',session('M_NICKNAME'));
	}

	//检查是否登陆
	public function checkLogin(){
		if(!session('M_ACCOUNT')){
			 redirect(U("Login/index"));
		}
	}

	//ajax返回数据
	public function ajaxMsg($f,$m){
        $msg[$f] = $m;
        $this->ajaxReturn($msg,Json);
    }

}

?>